package im.xz.cn.xiacore.menu.shopMenu;

import im.xz.cn.xiacore.methods.itemStack;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;

public class shopMenu {
    public static void openShopMenu(Player player) {
        Inventory inventory = Bukkit.createInventory(player,27, ChatColor.LIGHT_PURPLE + "繁星梦 - 商店");

        ItemStack back = itemStack.createItemStack(Material.BARRIER,ChatColor.RED + "返回","","","",1,false);
        ItemStack playerTitle = itemStack.createItemStack(Material.BOOK,ChatColor.AQUA + "称号","","","",1,false);
        ItemStack onlyBuy = itemStack.createItemStack(Material.MAGMA_CREAM,ChatColor.WHITE + "收购商店",ChatColor.WHITE + "常驻","","",1,false);
        ItemStack onlySell = itemStack.createItemStack(Material.SLIME_BALL,ChatColor.WHITE + "购物商店",ChatColor.WHITE + "常驻","","",1,false);
        ItemStack dayBuy = itemStack.createItemStack(Material.MAGMA_CREAM,ChatColor.WHITE + "每日收购商店",ChatColor.WHITE + "每日刷新","","",2,false);
        ItemStack daySell = itemStack.createItemStack(Material.SLIME_BALL,ChatColor.WHITE + "每日购物商店",ChatColor.WHITE + "每日刷新","","",2,false);

        inventory.setItem(10,playerTitle);
        inventory.setItem(12,onlyBuy);
        inventory.setItem(13,onlySell);
        inventory.setItem(14,dayBuy);
        inventory.setItem(15,daySell);
        inventory.setItem(18,back);

        player.openInventory(inventory);
    }
}